@import 'mixins/index.scss';
/* Button 按钮
------------------------------- */
// 第三方字体图标大小
.el-button:not(.is-circle) i.el-icon,
.el-button i.iconfont,
.el-button i.fa,
.el-button--default i.iconfont,
.el-button--default i.fa {
	font-size: 14px !important;
	margin-right: 5px;
}
.el-button--small i.iconfont,
.el-button--small i.fa {
	font-size: 12px !important;
	margin-right: 5px;
}

/* Input 输入框、InputNumber 计数器
------------------------------- */
// 菜单搜索
.el-autocomplete-suggestion__wrap {
	max-height: 280px !important;
}

/* Form 表单
------------------------------- */
.el-form {
	// 用于修改弹窗时表单内容间隔太大问题，如系统设置的新增菜单弹窗里的表单内容

	.el-form-item:last-of-type {
		margin-bottom: 0 !important;
	}
	// 修复行内表单最后一个 el-form-item 位置下移问题
	&.el-form--inline {
		.el-form-item--large.el-form-item:last-of-type {
			margin-bottom: 22px !important;
		}
		.el-form-item--default.el-form-item:last-of-type,
		.el-form-item--small.el-form-item:last-of-type {
			margin-bottom: 18px !important;
		}
	}
	// https://gitee.com/lyt-top/vue-next-admin/issues/I5K1PM
	.el-form-item .el-form-item__label .el-icon {
		margin-right: 0px;
	}
	.el-input__suffix {
		position: absolute;
		right: 8px;
		top: 50%;
		transform: translateY(-50%);
	}
	.el-input-number.num-left{
		.el-input__inner{
			text-align: left;
		}
	}
}

/* Alert 警告
------------------------------- */
.el-alert {
	border: 1px solid;
}
.el-alert__title {
	word-break: break-all;
}

/* Message 消息提示
------------------------------- */
.el-message {
	min-width: unset !important;
	padding: 15px !important;
	box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.02);
}

/* NavMenu 导航菜单
------------------------------- */
// 默认样式修改
.el-menu {
	border-right: none !important;
	width: 210px;
	box-sizing: border-box;
	padding: 0 15px;
	max-width: 100%;
}
// .el-menu-item {
// 	height: var(--el-menu-item-height) !important;
// 	line-height: var(--el-menu-item-height) !important;
// }
.el-menu-item,
.el-sub-menu__title {
	color: val(--el-text-color-regular);
}
// 修复点击左侧菜单折叠再展开时，宽度不跟随问题
.el-menu--collapse {
	width: 64px !important;
}
// 外部链接时
.el-menu-item a,
.el-menu-item a:hover,
.el-menu-item i,
.el-sub-menu__title i {
	color: inherit;
	text-decoration: none;
}
// 第三方图标字体间距/大小设置
.el-menu-item .iconfont,
.el-sub-menu .iconfont,
.el-menu-item .fa,
.el-sub-menu .fa {
	@include generalIcon;
}
// 水平菜单、横向菜单高亮 背景色，鼠标 hover 时，有子级菜单的背景色
.el-sub-menu.is-active{
	.el-sub-menu__title{
		@extend .first-menu-active;
	}
}
.first-menu:not(.el-sub-menu).is-active{
	@extend .first-menu-active;
}
.el-menu-item{
	border-radius: 21px;
}
.first-menu .el-sub-menu__title{
	border-radius: 24px;
}
.first-menu-active{
	border-radius: 24px;
	color:#fff;
	background-color: var(--next-bg-menuBarActiveColor) !important;
}
.el-menu-item:hover,.el-sub-menu__title:hover{
	background-color: unset;
}

// 子级菜单背景颜色
// .el-menu--inline {
// 	background: var(--next-bg-menuBar-light-1);
// }
// 水平菜单、横向菜单折叠 a 标签
.el-popper.is-dark a {
	color: var(--el-color-white) !important;
	text-decoration: none;
}
// 水平菜单、横向菜单折叠背景色
.el-popper.is-pure.is-light {
	// 水平菜单
	.el-menu--vertical {
		background: var(--next-bg-menuBar);
		.el-sub-menu.is-active .el-sub-menu__title {
			color: var(--el-menu-active-color);
		}
		.el-popper.is-pure.is-light {
			.el-menu--vertical {
				.el-sub-menu .el-sub-menu__title {
					background-color: unset !important;
					color: var(--next-bg-menuBarColor);
				}
				.el-sub-menu.is-active .el-sub-menu__title {
					color: var(--el-menu-active-color);
				}
			}
		}
	}
	// 横向菜单
	.el-menu--horizontal {
		background: var(--next-bg-topBar);
		.el-menu-item,
		.el-sub-menu {
			height: 48px !important;
			line-height: 48px !important;
			color: var(--next-bg-topBarColor);
			.el-sub-menu__title {
				height: 48px !important;
				line-height: 48px !important;
				color: var(--next-bg-topBarColor);
			}
			.el-popper.is-pure.is-light {
				.el-menu--horizontal {
					.el-sub-menu .el-sub-menu__title {
						background-color: unset !important;
						color: var(--next-bg-topBarColor);
					}
					.el-sub-menu.is-active .el-sub-menu__title {
						color: var(--el-menu-active-color);
					}
				}
			}
		}
		.el-menu-item.is-active,
		.el-sub-menu.is-active .el-sub-menu__title {
			color: var(--el-menu-active-color);
		}
	}
}
// 横向菜单（经典、横向）布局
.el-menu.el-menu--horizontal {
	border-bottom: none !important;
	width: 100% !important;
	.el-menu-item,
	.el-sub-menu__title {
		height: 48px !important;
		color: var(--next-bg-topBarColor);
	}
	.el-menu-item:not(.is-active):hover,
	.el-sub-menu:not(.is-active):hover .el-sub-menu__title {
		color: var(--next-bg-topBarColor);
	}
}
// 菜单收起时，图标不居中问题
.el-menu--collapse {
	.el-menu-item .iconfont,
	.el-sub-menu .iconfont,
	.el-menu-item .fa,
	.el-sub-menu .fa {
		margin-right: 0 !important;
	}
	.el-menu-item {
		padding: 0;
		.el-menu-tooltip__trigger{
			padding: 0;
			justify-content: center;
		}
	}
	.el-sub-menu__title {
		padding: 0 !important;
		justify-content: center;

	}
	.el-sub-menu.is-active .el-sub-menu__title{
		color: white;
	}
}

/* Tabs 标签页
------------------------------- */
.el-tabs__nav-wrap::after {
	height: 1px !important;
}
.el-tabs--bottom .el-tabs__item.is-bottom:nth-child(2), .el-tabs--bottom .el-tabs__item.is-top:nth-child(2), .el-tabs--top .el-tabs__item.is-bottom:nth-child(2), .el-tabs--top .el-tabs__item.is-top:nth-child(2){
	padding-left: 20px;
}
.el-tabs__active-bar{
	padding: 0 20px;
  margin-left: -20px;
	box-sizing: content-box;
}

/* Dropdown 下拉菜单
------------------------------- */
.el-dropdown-menu {
	list-style: none !important; /*修复 Dropdown 下拉菜单样式问题 2022.03.04*/
}
.el-dropdown-menu .el-dropdown-menu__item {
	white-space: nowrap;
	&:not(.is-disabled):hover {
		background-color: var(--el-dropdown-menuItem-hover-fill);
		color: var(--el-dropdown-menuItem-hover-color);
	}
}

/* Steps 步骤条
------------------------------- */
.el-step__icon-inner {
	font-size: 30px !important;
	font-weight: 400 !important;
}
.el-step__title {
	font-size: 14px;
}

/* Dialog 对话框
------------------------------- */
.el-overlay {
	overflow: hidden;
	.el-overlay-dialog {
		display: flex;
		align-items: center;
		justify-content: center;
		position: unset !important;
		width: 100%;
		height: 100%;
		.el-dialog {
			margin: 0 auto !important;
			position: absolute;
			.table-search{
				padding: 0;
			}
		}
	}
}
.el-dialog__body {
	max-height: calc(90vh - 111px) !important;
	overflow-y: auto;
	overflow-x: hidden;
}

/* Card 卡片
------------------------------- */
.el-card__header {
	padding: 15px 20px;
}

/* Table 表格 element plus 2.2.0 版本
------------------------------- */
/* proTable */
// table-search 表格搜索样式
.table-search {
    padding: 24px 38px 26px;
    margin-bottom: 10px;
	background-color: var(--el-color-white);
	border-radius: var(--el-border-radius-round);
    .el-form {
      .el-form-item__content > * {
        width: 100%;
      }

      // 去除时间选择器上下 padding
      .el-range-editor.el-input__wrapper {
        padding: 0 10px;
      }
    }
	.operation {
		display: flex;
		align-items: center;
		margin-top: 15px;
	}
}
.table-box,
.table-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0 20px 20px;
  border-radius: var(--el-border-radius-round);
  background-color: var(--el-color-white);

  // 表格 header 样式
  .table-header {
    .header-button-ri {
      float: right;
    }
  }

  // el-table 表格样式
  .el-table {
	margin-top: 20px;
    flex: 1;
    table {
      width: 100%;
    }
    .el-table__header th {
      height: 45px;
      font-size: 15px;
      font-weight: bold;
      color: var(--el-text-color-primary);
      background: var(--el-fill-color-light);
    }
    .el-table__row {
      height: 45px;
      font-size: 14px;
    }

    // 设置 el-table 中 header 文字不换行，并省略
    .el-table__header .el-table__cell > .cell {
      white-space: nowrap;
    }

    // 解决表格数据为空时样式不居中问题(仅在element-plus中)
    .el-table__empty-block {
      padding: 20px 0;
    }
		
		.el-table__empty-block .table-empty{
			line-height: 30px;
		}
    // table 中 image 图片样式
    .table-image {
      width: 50px;
      height: 50px;
      border-radius: 50%;
    }
  }

  // 表格 pagination 样式
  .el-pagination {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
  }
}

/* el-table 组件大小 */
.el-table--small {
  .el-table__header th {
    height: 40px !important;
    font-size: 14px !important;
  }
  .el-table__row {
    height: 40px !important;
    font-size: 13px !important;
  }
}
.el-table--large {
  .el-table__header th {
    height: 50px !important;
    font-size: 16px !important;
  }
  .el-table__row {
    height: 50px !important;
    font-size: 15px !important;
  }
}

/* scrollbar
------------------------------- */
.el-scrollbar__bar {
	z-index: 4;
}
/*防止页面切换时，滚动条高度不变的问题（滚动条高度非滚动条滚动高度）*/
.el-scrollbar__wrap {
	max-height: 100%;
}
.el-select-dropdown .el-scrollbar__wrap {
	overflow-x: scroll !important;
}
/*修复Select 选择器高度问题*/
.el-select-dropdown__wrap {
	max-height: 274px !important;
}
/*修复Cascader 级联选择器高度问题*/
.el-cascader-menu__wrap.el-scrollbar__wrap {
	height: 204px !important;
}
.layout-container-view{
	.layout-backtop{
		padding: 0 24px 24px;
	}
	box-sizing: border-box;
}
/*用于界面高度自适应（main.vue），区分 scrollbar__view，防止其它使用 scrollbar 的地方出现滚动条消失*/
.layout-container-view .el-scrollbar__view {
	height: 100%;
}
/*防止分栏布局二级菜单很多时，滚动条消失问题*/
.layout-columns-warp .layout-aside .el-scrollbar__view {
	height: unset !important;
}

/* Pagination 分页
------------------------------- */
.el-pagination__editor {
	margin-right: 8px;
}
/*深色模式时分页高亮问题*/
.el-pagination.is-background .btn-next.is-active,
.el-pagination.is-background .btn-prev.is-active,
.el-pagination.is-background .el-pager li.is-active {
	background-color: var(--el-color-primary) !important;
	color: var(--el-color-white) !important;
}

/* Drawer 抽屉
------------------------------- */
.el-drawer {
	--el-drawer-padding-primary: unset !important;
	.el-drawer__header {
		padding: 0 15px !important;
		height: 50px;
		display: flex;
		align-items: center;
		margin-bottom: 0 !important;
		border-bottom: 1px solid var(--el-border-color);
		color: var(--el-text-color-primary);
	}
	.el-drawer__body {
		width: 100%;
		height: 100%;
		overflow: auto;
	}
}

.el-form-sub-title{
	color: var(--el-text-color-primary);
	font-size: 16px;
	font-weight: 500;
	margin-bottom: 16px;
}
.content-box{
	border-radius: var(--el-border-radius-round);
	background-color: var(--el-color-white);
	padding: 30px;
	flex: 1;
}
.form-table{
	width: 100%;
	th.el-table__cell{
		background-color: #F2F5F8;
	}
}
.el-steps{
	.is-horizontal{
		.el-step__icon{
			width: 32px;
			height: 32px;
			border: 3px solid #F2F5F8;
			border-radius: 50%;
			box-sizing: content-box;
			color: #F2F5F8;
		}
		.el-step__head {
			&.is-wait,&.is-process{
					.el-step__icon-inner{
						font-size: 18px !important;
						font-weight: 500!important;
			
					}
			}
			&.is-process{
				.el-step__icon{
					border-color: var(--el-color-white);
					color: var(--el-color-white);
					background-color:var(--el-color-primary);
					width: 35px;
					height: 35px;
				}
			}
			&.is-finish{
				.el-step__icon{
					width: 34px;
					height: 34px;
					border-color: var(--el-color-white);
					color:var(--el-color-primary);
	
				}
				.el-step__icon-inner{
					font-size: 40px!important;
				}	
				.el-step__line{
					border-color: var(--el-color-primary);
				}
			}
		}
		.el-step__title{
			font-size: 16px;
			&.is-process{
				color: var(--el-color-primary);
			}
		}
		.el-step__description{
				font-size: 14px;
				&.is-process{
				color: var(--el-color-primary);
			}
		}
		.el-step__line{
			top: 15px;;
			width: 100%;
			border: 5px solid #F2F5F8;
		}
	}

}

.radio-column{
	flex-direction: column;
	align-items: flex-start;
	.el-radio__label{
		display: flex;
	}

}
.el-popper.is-dark{
	max-width: 70vw;
}